home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14430 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: pogner.demon.co.uk!pogner!simon
  2. From: simon@pogner.demon.co.uk (Simon Wright)
  3. Newsgroups: comp.lang.ada,comp.lang.c++
  4. Subject: Re: some questions re. Ada/GNAT from a C++/GCC user
  5. Date: 30 Mar 1996 15:31:24 GMT
  6. Organization: At Home
  7. Distribution: world
  8. Message-ID: <SIMON.96Mar30153124@pogner.demon.co.uk>
  9. References: <wnewmanDoxrCp.DKv@netcom.com>
  10.     <4je9ju$174r@watnews1.watson.ibm.com>
  11.     <ROGOFF.96Mar28134118@sccm.Stanford.EDU>
  12.     <4jhe1v$m0g@dayuc.dayton.saic.com>
  13. NNTP-Posting-Host: pogner.demon.co.uk
  14. X-NNTP-Posting-Host: pogner.demon.co.uk
  15. In-reply-to: John G. Volan's message of 29 Mar 1996 19:35:27 GMT
  16.  
  17. In article <4jhe1v$m0g@dayuc.dayton.saic.com> John G. Volan <John_Volan@ccmail.dayton.saic.com> writes:
  18. [...]
  19. > A C programmer would complain about having to introduce an extra
  20. > begin/end block in order to introduce variables.  Isn't the scope
  21. > of a variable well-defined in C, even without this extra baggage?
  22. > It just extends from the declaration to the end of whatever block
  23. > you're already in.
  24. > An Ada programmer would counter that, in Ada, some variables might be
  25. > instances of _task_ types.  By definition, a task object gets created
  26. [...]
  27.  
  28. I would be quite likely to use declare blocks to introduce types and
  29. instantiations, for example where the size of a data structure wasn't
  30. known until that point.
  31.  
  32. -- 
  33. Simon Wright                    Work Email: simon.j.wright@gecm.com
  34. Ferranti Naval Systems                     Voice: +44(0)1705-701778
  35. GEC-Marconi S3I Combat Systems Division      FAX: +44(0)1705-701800
  36.